/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2024-12-09 20:49:51
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2025-02-22 16:03:03
 * @FilePath: /vue-element-admin/src/api/warehousing.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'


// /**
//  * @description 库存管理 出库管理 出库按钮 
//  * @param {Number} param id {Number} 物流公司id
//  */
// export function outofstockApi(data) {
//   return request({
//     url: '/retailStockTrade/list',
//     method: 'get',
//     params: data,
//   });
// }



// /**
//  * @description 库存管理 物料配置 获取列表
//  * @param {Number} param id {Number} 物流公司id
//  */
// export function getMaterialListQuery(data) {
//   return request({
//     url: '/retailStock/list',
//     method: 'get',
//     params: data,
//   });
// }

/**
 * @description 设置 配置订单 列表
 */
export function getSetOrderList(data) {
  return request({
    url: '/retailCustomerSetting/list',
    method: 'get',
    params: data, 
  });
}

//获取员工列表(包括店长)
export function getListQueryBurial(query) {
  return request({
    url: '/sysUser/listQueryBurial',
    method: 'get',
    params: query
  })
}

/**
 * @description 客户管理 客户信息管理列表
 * @param {Number} param id {Number} 物流公司id
 */


export function invalidRecoverApi( data) {
  return request({
    url: `/retailCustomer/invalidRecover?id=${data}`,
    method: 'put',
    // data
  })
}

export function getListQuery(query) {
  return request({
    url: '/retailCustomer/listQuery',
    method: 'get',
    params: query
  })
}




// export function getList(query) {
//   return request({
//     url: '/retailStockTrade/list',
//     method: 'get',
//     params: query


//   })
// }

export function create(data) {
  return request({
    url: '/retailCustomer/add',
    method: 'post',
    data
  })
}

export function update( data) {
  return request({
    url: `/retailCustomer/update`,
    method: 'put',
    data
  })
}

// export function deleteData(id) {
//   return request({
//     url: `/retailStockTrade/delete/?id=${id}`,
//     method: 'delete'
//   })
// }


export function getCineraryUrnList(query) {
  return request({
    url: '/retailAshUrn/list',
    method: 'get',
    params: query
  })
}